# 1、求1+2+3+4+....+100的值
result = 0
for i in range(1, 101):
    result = result + i
print(f'他们的和为：{result}')

# 2、求100以内，能被3整除，但不能被5整除的数
result = []
for i in range(1, 101):
    if i % 3 == 0 and i % 5 != 0:
        result.append(i)
print(f'他们为：{result}')

# 3、有一个水缸，总量50L，已经有15L，挑水一次只能挑4L，几次挑满
count = 0
# for i in range(15,51,4):
#     if i<=50:
#         count=count+1

for i in range(0, 50, 4):
    if i <= 50 - 15:
        count = count + 1
print(f'需要：{count}次挑满')
